<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学习成绩档案</title>
</head>
<body>
<div class="layuimini-container layuimini-page-anim">
    <div class="layuimini-main">
        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>
    </div>
    <input type="hidden" th:value="${isBreach}" id="is">
</div>
<script>
    layui.use(['form', 'table','miniPage','element','layer'], function () {
        var $ = layui.jquery,
            form = layui.form,
            table = layui.table,
            miniPage = layui.miniPage,
            isBreach = document.getElementById('is').value;
        console.log(isBreach)
        if(isBreach == 1){
            console.log(8)
            layer.open({
                type: 1
                ,title: false //不显示标题栏
                ,closeBtn: false
                ,area: '300px;'
                ,shade: 0.8
                ,id: 'LAY_layuipro' //设定一个id，防止重复弹出
                ,btn: ['我知道了']
                ,btnAlign: 'c'
                ,moveType: 1 //拖拽模式，0或者1
                ,content: '<div style="padding: 50px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">注意！<br>由于您的失信行为，您的账户暂时被冻结<br><br>冻结期间您将无法借书和预约<br><br>请您及时归还图书</div>'
            });
        }
        form.render();
        table.render({
            elem: '#currentTableId',
            url: '/borrowerCreditInfo',
            toolbar: '#toolbarDemo',
            defaultToolbar: ['filter', 'exports', 'print', {
                title: '提示',
                layEvent: 'LAYTABLE_TIPS',
                icon: 'layui-icon-tips'
            }],
            cols: [
                [
                    {field: 'id', title: '冻结编号', sort: true},
                    {field: 'breachStart', title: '冻结开始时间', sort: true},
                    {field: 'breachEnd', title: '冻结结束时间', sort: true},
                    {field: 'is',title: '是否在冻结期', sort: true}
                ]
            ],
            limit: 15,
            page: true,
            skin: 'line'
        });
        function fun1(){
        }
    });
</script>
</body>
</html>

